package org.jeecg.modules.experiment_student.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.jeecg.modules.experiment_student.entity.AstuExperimentUser;

/**
 * @Description: 实验和用户表
 * @Author: jeecg-boot
 * @Date:   2020-11-05
 * @Version: V1.0
 */
public interface AstuExperimentUserMapper extends BaseMapper<AstuExperimentUser> {
    @Select("select * from astu_experiment_user where experiment_id=#{experimentId} and user_id=#{UserId}")
    AstuExperimentUser selectByExpermrntIdAndUserId(@Param("experimentId") String experimentId,@Param("UserId") String UserId);

    @Update("update astu_experiment_user set experiment_score=#{score} where id=#{id}")
    void updateScoreById(@Param("id") String id, @Param("score") String score);
}
